﻿/******************************************************************************
  * Copyright  2023 - LiuKuan
  * All right reserved. See COPYRIGHT for detailed Information.
  *
  * @file       ControllerManager.h
  * @brief
  * @author     <807874484@qq.com>
  * @date       2024/07/29
  * @history
  *****************************************************************************/

#ifndef CONTROLLERMANAGER_H
#define CONTROLLERMANAGER_H


#include <QObject>
#include "Singleton.h"
#include "controllers/TowerDevicesController.h"

class ControllerManager : public QObject
{
    Q_OBJECT
    SINGLETON(ControllerManager)
    Q_PROPERTY(TowerDevicesController*  towerDevice   READ towerDevice    CONSTANT)
public:
    explicit ControllerManager(QObject *parent = nullptr);

    Q_INVOKABLE  TowerDevicesController *towerDevice();

private:
    void init_();
private:
   TowerDevicesController *tower_devices_controller_{nullptr};
};

#endif // CONTROLLERMANAGER_H
